package cn.mdx.mapper;

import cn.mdx.pojo.Service;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public interface ServiceMapper {
    int deleteByPrimaryKey(Integer sid);

    int insert(Service record);

    int insertSelective(Service record);

    Service selectByPrimaryKey(Integer sid);

    int updateByPrimaryKeySelective(Service record);

    int updateByPrimaryKey(Service record);

    Integer findPrimaryKey(Service record);

    ArrayList<Integer> getServicesId(Integer uid);

    Service findAuditService (Integer sid);

    //@author 宋飞翔=====================================================================
    Service selectByIds(@Param("ids") Integer ids);

    int deleteByIds(@Param("ids") Integer pid);

    List<Service> getServiceByUid(@Param("uid") Integer uid);
}